package com.lbmb.photodrawaimanager.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbmb.photodrawaimanager.entity.dto.PhotoUserDownLoadEntity;
import com.lbmb.photodrawaimanager.entity.resp.PhotoUserDownLoadResp;
import com.lbmb.photodrawaimanager.service.PhotoUserDownLoadService;
import com.lbmb.photodrawaimanager.utils.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2023/8/64:14 上午
 */

@RestController
@RequestMapping("/api/v1/user/download")
public class PhotoUserDownLoadController {




    @Autowired
    PhotoUserDownLoadService userDownLoadService;

    @GetMapping("/create_save_operation")
    public Response<?> createSaveOperation(@RequestParam("userUploadId") Long userUploadId, @RequestParam("carToonType") String carToonType){

        return  Response.ok(userDownLoadService.makeImgOperation(userUploadId,carToonType));
    }
}
